package com.aiyige.richtexteditor.model;

public class Persistent {
    String persistentId;
    String url;

    public Persistent() {
    }

    private Persistent(Builder builder) {
        setPersistentId(builder.persistentId);
        setUrl(builder.url);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getPersistentId() {
        return persistentId;
    }

    public void setPersistentId(String persistentId) {
        this.persistentId = persistentId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public static final class Builder {
        private String persistentId;
        private String url;

        private Builder() {
            persistentId = "";
            url = "";
        }

        public Builder persistentId(String val) {
            persistentId = val;
            return this;
        }

        public Builder url(String val) {
            url = val;
            return this;
        }

        public Persistent build() {
            return new Persistent(this);
        }
    }
}
